<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性选择器</title>
    <style>
        [abc]{
            display: none;
        }
    </style>
</head>
<body>
<div>abcd</div>
<div abc>abcd</div>
</body>
</html>